
RewriteEngine on

RewriteOptions inherit

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Check if the requested file exists
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # Ignore requests for .html files
    RewriteCond %{REQUEST_URI} !\.html$ 

    # If the requested file does not have an extension, add .php
    RewriteRule ^(.*)$ $1.php [L]

</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
